<%@ include file="/taglibs.jsp"%>
<fmt:message key="date.format" var="df" scope="page"/>
<title><fmt:message key="timeHolidayList.title"/></title>

<s:set name="timeHolidays" value="list" scope="request"/>
<div align="right">
	<button onclick="location.href='editTimeHoliday.html'" style="text-align: center;" >
		<fmt:message key="button.add.title"></fmt:message>
		<img src="${ctx}/images/btn_add.png" align="left" height="20" width="20">
	</button>
</div>
<display:table name="timeHolidays" class="table" requestURI="" id="timeHolidayList" export="false" pagesize="10">
    <display:column property="holidayName" href="editTimeHoliday.html" media="html"
        paramId="id" paramProperty="id" sortable="true" titleKey="timeHoliday.holidayName" escapeXml="true"/>
    <display:column sortable="true" titleKey="timeHoliday.holidayDate" escapeXml="true">
    	<fmt:formatDate value="${timeHolidayList.holidayDate}" pattern="${df}"/>
    </display:column>
    <display:column sortable="true" titleKey="timeHoliday.repeat" escapeXml="true">
    	<c:if test="${timeHolidayList.repeat}">
    		<fmt:message key="timeHoliday.repeat"/>
    	</c:if>
    </display:column>
</display:table>

<script type="text/javascript">highlightTableRows("timeHolidayList");</script>
<button onclick="location.href='editTimeHoliday.html'" style="text-align: center;" >
	<fmt:message key="button.add.title"></fmt:message>
	<img src="${ctx}/images/btn_add.png" align="left" height="20" width="20">
</button>
